package com.example.schoolexam2.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(200, "成功"),
    FALL(500, "失败"),
    REQUEST_PARAM_ERROR(501, "请求参数错误,或数据不存在"),
    REGISTER_SUCCESS(0, "注册成功"),
    REGISTER_FAILED(-1, "注册失败"),
    LOGIN_SUCCESS(0, "登录成功"),
    LOGIN_FAILED(-1,"登陆失败"),
    IMPORT_FAILED(-1,"导入失败，文件为空或者关键位置未填写信息"),
    IMPORT_SUCCESS(0,"导入成功"),
    FAIL_ERROR(-1,"上传失败，请传输xls或者xlsx文件"),
    CREATE_SUCCESS(0,"创建成功"),
    CREATE_FAILED(-1,"创建失败，当前上传类型存在空题"),
    MODIFY_FAILURE(0,"修改失败"),
    MODIFY_SUCCESS(-1,"修改成功");







    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;
}
